<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:37:"themes/simpleboot3/portal\\index.html";i:1535956242;s:65:"E:\wamp\www\sjdatong\public\themes\simpleboot3\public\header.html";i:1535956010;s:67:"E:\wamp\www\sjdatong\public\themes\simpleboot3\public\function.html";i:1525406152;s:63:"E:\wamp\www\sjdatong\public\themes\simpleboot3\public\foot.html";i:1535956348;}*/ ?>
<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>四季大通</title>
	<link rel="stylesheet" href="/themes/simpleboot3/public/static/css/swiper.min.css">
	<link rel="stylesheet" href="/themes/simpleboot3/public/static/css/main.min.css">
	<script src="/themes/simpleboot3/public/static/js/swiper.min.js"></script>
	<script src="/themes/simpleboot3/public/assets/js/jquery-1.10.2.min.js"></script>
</head>
<style>
	.dropdown-menu {
		display: none
	}
</style>

<?php 
/*可以加多个方法哟！*/
function _sp_helloworld(){
	echo "hello ThinkCMF!";
}

function _sp_helloworld2(){
	echo "hello ThinkCMF2!";
}


function _sp_helloworld3(){
	echo "hello ThinkCMF3!";
}

 
use app\portal\model\NavMenuModel; 
 ?>
<body>
	<div class="banner">
		<div class="content">
			<div class="swiper-container">
				<div class="swiper-wrapper">
					 <?php
     $__SLIDE_ITEMS__ = \app\admin\service\ApiService::slides(1);
if(is_array($__SLIDE_ITEMS__) || $__SLIDE_ITEMS__ instanceof \think\Collection || $__SLIDE_ITEMS__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__SLIDE_ITEMS__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

					<div class="swiper-slide">
						<img src="<?php echo cmf_get_image_preview_url($vo['image']); ?>" alt="">
					</div>
					
<?php endforeach; endif; else: echo "" ;endif; ?>
					
				</div>
				<div class="swiper-pagination"></div>
			</div>
		</div>
	</div>
	<div class="nav">
		<div class="container" style="width: 1300px">
			<div class="logo">
				<img src="/themes/simpleboot3/public/static/img/logo.png" alt="logo">
			</div>
			<ul>

				<?php

function __parse_navigation846949f1f60448c7d4afb3deafa063d5($menus,$level=1){
$_parse_navigation_func_name = '__parse_navigation846949f1f60448c7d4afb3deafa063d5';
if(is_array($menus) || $menus instanceof \think\Collection || $menus instanceof \think\Paginator): if( count($menus)==0 ) : echo "" ;else: foreach($menus as $key=>$menu): if(empty($menu['children'])): 
							$urlArr = explode('&', $_SERVER["REQUEST_URI"]);
							unset($urlArr[1]);
							$urlRequest = implode('&', $urlArr);
							$active = ""; $url='http://'.$_SERVER['SERVER_NAME'].$urlRequest;
							$urlArr1 = explode('?', $_SERVER["REQUEST_URI"]);	
							unset($urlArr1[1]);
							$urlRequest1 = implode('?', $urlArr1);
							$url1='http://'.$_SERVER['SERVER_NAME'].$urlRequest1;

							if($url == $menu['href'] || $url1 == $menu['href']){ $active = "active";
							}else{ if($menu['children']){ foreach($menu['children'] as $value){ if($url == $value['href'] || $url1 == $value['href']){ $active = "active";
							break; } } }else{ $active = ""; } }

						 ?>
						<li class="<?php echo $active; ?>">
							<a href="<?php echo (isset($menu['href']) && ($menu['href'] !== '')?$menu['href']:''); ?>" target="<?php echo (isset($menu['target']) && ($menu['target'] !== '')?$menu['target']:''); ?>" j="1" kkk="<?php echo $url; ?>" kkk1="<?php echo $url1; ?>" kkk2="<?php echo $menu['href']; ?>">
								<?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?>
								
							</a>
						</li>


					
<?php endif; if(!empty($menu['children'])): ?>
    <li class="dropdown dropdown-custom dropdown-custom-level-<?php echo $level; ?>">
        
						<?php 
							$urlArr = explode('&', $_SERVER["REQUEST_URI"]);
							unset($urlArr[1]);
							$urlRequest = implode('&', $urlArr);
							$active = ""; $url='http://'.$_SERVER['SERVER_NAME'].$urlRequest;
							$urlArr1 = explode('?', $_SERVER["REQUEST_URI"]);	
							unset($urlArr1[1]);
							$urlRequest1 = implode('?', $urlArr1);
							$url1='http://'.$_SERVER['SERVER_NAME'].$urlRequest1;

							if($url == $menu['href'] || $url1 == $menu['href']){ $active = "active";
							}else{ if($menu['children']){ foreach($menu['children'] as $value){ if($url == $value['href'] || $url1 == $value['href']){ $active = "active";
							break; } } }else{ $active = ""; } }

						 ?>
						<li class="<?php echo $active; ?>">
							<a href="<?php echo (isset($menu['href']) && ($menu['href'] !== '')?$menu['href']:''); ?>" target="<?php echo (isset($menu['target']) && ($menu['target'] !== '')?$menu['target']:''); ?>" j="2" kkk="<?php echo $url; ?>" kkk1="<?php echo $url1; ?>" kkk2="<?php echo $menu['href']; ?>">
								<?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?>
								<!-- <span><?php echo (isset($menu['name_en']) && ($menu['name_en'] !== '')?$menu['name_en']:''); ?></span> -->
							</a>
						</li>
					
        <ul class="dropdown-menu dropdown-menu-level-<?php echo $level; ?>">
            <?php 
            $mLevel=$level+1;
             ?>
            <?php echo $_parse_navigation_func_name($menu['children'],$mLevel); ?>
        </ul>
    </li>
<?php endif; endforeach; endif; else: echo "" ;endif; 
}
    $navMenuModel = new \app\admin\model\NavMenuModel();
    $menus = $navMenuModel->navMenusTreeArray('',0);
if(''==''): ?>
    <?php echo __parse_navigation846949f1f60448c7d4afb3deafa063d5($menus); else: ?>
    < id="main-navigation" class="nav navbar-nav navbar-nav-custom">
        <?php echo __parse_navigation846949f1f60448c7d4afb3deafa063d5($menus); ?>
    </>
<?php endif; ?>

				
			</ul>
		</div>
	</div>
	<script>
		$('.menu-lang').mouseover(function(){
			$(this).addClass('active');
		}).mouseleave(function(){
			$(this).removeClass('active');
		})
	</script>

    

 <div class="footer clearfix">
        <div class="container">
            <ul>

				

                <li class="contactus">
                    <h3>联系我们
                    </h3>
                    <p>
                        深圳市罗湖区嘉宾路爵士大厦16A06-07室
                        <br>Fax: +86 755-25901858
                        <br>Mail: info@eanta365.com
                    </p>
                </li>
            </ul>
        </div>
    </div>
    <script>
        var swiper = new Swiper('.swiper-container', {
            pagination: {
                el: '.swiper-pagination',
                clickable: true,
            }
        });
		
    </script>
</body>

</html>